<!--
  ~ Copyright (c) 2019-2021 VMware Inc. or its affiliates, All Rights Reserved.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~   https://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<!DOCTYPE html>
<html th:replace="~{layout :: layout('listVersions', ~{::title}, ~{::meta[@name='description']}, ~{::link}, ~{::body})}" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Project Reactor - Documentation</title>
    <meta name="description" content="Project Reactor Documentation links"/>
    <link href="/assets/css/docs.css" media="all" rel="stylesheet"/>
</head>
<body>
<div class="page-summary">
    <div class="page-summary-content">
        <div class="page-summary-wrap">
            <h1>List of <span th:text="${artifactId}">PROJECT</span> versions</h1>
            <div class="details">
                This page lists known versions for <span class="version releasetrain" th:text="${artifactId}">PROJECT</span>.
                For each major release cycle, you'll find quick links to latest
                <span class="version pre" style="width: 10pt">SNAPSHOT</span> and
                <span class="version" style="width: 10pt">RELEASE</span> as well as a more comprehensive list of release and milestone versions.
            </div>
        </div>
    </div>
</div>
<div id="main" class="book">
    <section id="versions">
        <table>
            <div th:each="group: ${trains}">
                <tr>
                    <td colspan="5" class="versionListGen">
                        <span th:text="${group.key}">GENERATION</span>
                    </td>
                </tr>
                <tr th:each="version: ${group.value}" th:with="latestR=${latestReleases.get(group.key)},latestS=${latestSnapshots.get(group.key)}">
                    <td>
                        <span th:if="${latestS && latestS.t1 == version.t1}" class="version pre">SNAPSHOT</span>
                        <span th:if="${latestR && latestR.t1 == version.t1}" class="version">RELEASE</span>
                    </td>
                    <td>
                        <span th:text="${version.t1}">VERSION PLACEHOLDER</span>
                    </td>
                    <td><a th:if="${!#strings.isEmpty(version.t2)}" th:href="${version.t2}">
                        <span class="fa fa-file-text">&nbsp;</span>Javadoc</a>
                    </td>
                    <td><a th:if="${!#strings.isEmpty(version.t3)}" th:href="${version.t3}">
                        <span class="fa fa-book">&nbsp;</span>Reference Documentation</a>
                    </td>
                    <td><a th:if="${!#strings.isEmpty(version.t4)}" th:href="${version.t4}">
                        <span class="fa fa-file-text-o">&nbsp;</span>KDoc</a>
                    </td>
                </tr>
            </div>
        </table>
    </section>
</div>

</body>
</html>
